cmake_minimum_required(VERSION 3.0.2)
project(topic)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  std_msgs
)

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES topic
#  CATKIN_DEPENDS roscpp std_msgs
#  DEPENDS system_lib
)

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)

add_executable(${PROJECT_NAME}_pub_node src/pub_topic.cpp)
target_link_libraries(${PROJECT_NAME}_pub_node ${catkin_LIBRARIES})

add_executable(${PROJECT_NAME}_sub_node src/sub_topic.cpp)
target_link_libraries(${PROJECT_NAME}_sub_node ${catkin_LIBRARIES})